<?php include 'system/application/views/header.php' ?>
<!-- content middel -->
<table class='content-middle' align='center'>
    <tr>
        <td class="fix-content">
            <h2 class="title-master"><?php echo title_cate($cateRootCode['NewsCategoryCode'])?></h2>
            <hr/>
            
            <!-- List news -->
            <div class="content-list-news">
            	<?php foreach($articles as $artilce):?>
            	<div class="article-item">
            		<h4 class="article-title"><a title="<?php echo $artilce['NewsTitle'] ?>" href="<?php echo base_url(). $cateRootCode['NewsCategoryCode'] ?>/chi_tiet/<?php echo convert_link($artilce['NewsTitle']).'_'.$artilce['NewsId'] ?>.html"><?php echo $artilce['NewsTitle'] ?></a></h4>
            		<img class="article-image" align="left"  alt="<?php echo $artilce['NewsTitle'] ?>"
            			src="<?php echo base_url()?>media/uploads/news/<?php echo $artilce['Image'] ?>"/>
            		<div class="article-item-content"><?php echo $artilce['NewsShort']?></div>
            		<div class="clr"></div>
            	</div>
            	<?php endforeach; ?>
            </div>
            <!-- paging list news -->
            <div class="pagination">
            	<?php echo $this->pagination->create_links() ?>
            </div>
            <!-- end paging list news -->
            
            <!-- End list news -->
        </td>
        <?php include 'system/application/views/right.php' ?>
    </tr>
</table>  
<?php include 'system/application/views/footer.php' ?>